package com.SHA1604.tiger.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.LayoutInflater;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.SHA1604.tiger.R;

import butterknife.InjectView;
import butterknife.OnClick;

/**
 * ***********************************************************
 * author: jie
 * time: 2016/7/27 20:34
 * name:
 * overview:Build.VERSION.SDK_INT:版本号
 * usage:
 * *************************************************************
 */
public class Me_Header extends LinearLayout {
    @InjectView(R.id.me_header_circle)
    CircleImageView mMeHeaderCircle;
    @InjectView(R.id.me_header_bt)
    Button mMeHeaderBt;
    @InjectView(R.id.me_header_tv1)
    TextView mMeHeaderTv1;
    @InjectView(R.id.me_header_tv2)
    TextView mMeHeaderTv2;
    @InjectView(R.id.me_header_bt2)
    Button mMeHeaderBt2;

    public Me_Header(Context context) {
        this(context, null);
    }

    public Me_Header(Context context, AttributeSet attrs) {
        this(context, attrs, 0);
    }

    public Me_Header(Context context, AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
        initData();
    }

    private void initData() {
        LayoutInflater.from(getContext()).inflate(R.layout.view_me_header, null);
    }

    @OnClick({R.id.me_header_circle, R.id.me_header_bt, R.id.me_header_bt2})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.me_header_circle:
                break;
            case R.id.me_header_bt:
                break;
            case R.id.me_header_bt2:
                break;
        }
    }
}
